micro_utils.dokka
0.12.11
jvm
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
[jvm]firstOf
first
Of
jvm
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
variants
:
Iterable
<
Deferred
<
T
>
>
,
cancelOnResult
:
Boolean
=
true
)
:
T
Content copied to clipboard
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
cancelOnResult
:
Boolean
=
true
,
block
:
DoWithFirstBuilder
<
T
>
.
(
)
->
Unit
)
:
T
Content copied to clipboard
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
vararg
variants
:
Deferred
<
T
>
,
cancelOnResult
:
Boolean
=
true
)
:
T
Content copied to clipboard